package service.impl;

import service.interf.IIfwCardInfo;
import dao.interf.IIfwCardInfoDAO;
import dao.pojo.IfwCardInfo;

public class IfwCardInfoImpl extends BaseDataServiceImpl implements
		IIfwCardInfo {

	private IIfwCardInfoDAO iIfwCardInfoDAO;

	public IIfwCardInfoDAO getiIfwCardInfoDAO() {
		return iIfwCardInfoDAO;
	}

	public void setiIfwCardInfoDAO(IIfwCardInfoDAO iIfwCardInfoDAO) {
		this.iIfwCardInfoDAO = iIfwCardInfoDAO;
	}

	public String addCard(IfwCardInfo model) throws Exception {
		model.setCardSta("valid");
		model.setHost(150);
		model.setAc(5);
		iIfwCardInfoDAO.save(model);
		return "1";
	}

}
